import Layout from '@/layout/index.vue'

const orderRouter = {
  path: '/order',
  name: 'Order',
  component: Layout,
  meta: {
    title: '订单管理',
    icon: 'icon-dingdan',
    addToSidebar: true,
    roles: ['admin']
  },
  children: [
    {
      path: '/outOrder',
      name: 'OutOrder',
      component: () => import('@/views/order/outOrder.vue'),
      meta: { title: '出货订单', roles: ['admin'] }
    },
    {
      path: '/biddingOrder',
      name: 'BiddingOrder',
      component: () => import('@/views/order/biddingOrder.vue'),
      meta: { title: '竞价订单', roles: ['admin'] }
    },
    {
      path: '/deliveryOrder',
      name: 'deliveryOrder',
      component: () => import('@/views/order/deliveryOrder.vue'),
      meta: { title: '配送订单', roles: ['admin'] }
    }
  ],

}

export default orderRouter